<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;

use App\Models\Slider;

class SliderController extends Controller
{
    public function getAll()
    {
        $sliders = Slider::query()->orderBy('sort_num', 'asc')->get();
        return response()->json(['code' => 1, 'data' => $sliders]);
    }
}
